package com.example.lenovo.demo.presenter.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.example.lenovo.demo.view.StrateChildFragment;

import java.util.List;

/**
 * Created by Lenovo on 2017/1/15.
 */

public class StrategyChildAcVpAdater extends FragmentPagerAdapter {
    private List<StrateChildFragment> data;
    public StrategyChildAcVpAdater(FragmentManager fm,List<StrateChildFragment> data) {
        super(fm);
        this.data=data;
    }

    @Override
    public Fragment getItem(int position) {
        return data.get(position);
    }

    @Override
    public int getCount() {
        return data.size();
    }

}
